package com.fqgj.sentry.policy.dao;

import com.fqgj.common.base.BaseMapper;
import com.fqgj.sentry.policy.entity.PcExecuteResultEntity;

import java.util.List;

/**
 * User: yujianfu
 * Date: 2017-07-12
 * Time: 09:37:58.107
 */

public interface PcExecuteResultDao extends BaseMapper<PcExecuteResultEntity> {
    /**
     * 根据策略集id 查询 改策略集下面设置的执行结果
     *
     * @param policySetsId
     * @return
     */
    List<PcExecuteResultEntity> selectExecuteResultList(Long policySetsId);

    /**
     *查询策略集下面是否有某个结果
     * @param policySetsId
     * @param result
     * @return
     */
    PcExecuteResultEntity selectExecuteResultByResult(Long policySetsId,String result);


    /**
     *查询 策略集下  优先级最高的结果
     * @param policySetsId
     * @return
     */
    PcExecuteResultEntity selectMaxLevelExecuteResultList(Long policySetsId);


}